<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="css/index.css">
    <script src="js/vue.js"></script>
    <script src="js/index.js"></script>
      

    <!--&lt;!&ndash;<!‐‐ 引入ElementUI样式 ‐‐>&ndash;&gt;-->
    <!--<link rel="stylesheet" href="https://unpkg.com/element‐ui/lib/theme‐chalk/index.css">-->
    <!--<script src="https://unpkg.com/vue/dist/vue.js"></script>-->
    <!--&lt;!&ndash;<!‐‐ 引入ElementUI组件库 ‐‐>&ndash;&gt;-->
    <!--<script src="https://unpkg.com/element‐ui/lib/index.js"></script>-->
</head>
<body>
  
<div id="app">
    <el-dropdown>
        <el-button type="primary">
            更多菜单<i class="el-icon-arrow-down el-icon--right"></i>
        </el-button>
        <el-dropdown-menu slot="dropdown">
            <el-dropdown-item>黄金糕</el-dropdown-item>
            <el-dropdown-item>狮子头</el-dropdown-item>
            <el-dropdown-item>螺蛳粉</el-dropdown-item>
            <el-dropdown-item>双皮奶</el-dropdown-item>
            <el-dropdown-item>蚵仔煎</el-dropdown-item>
        </el-dropdown-menu>
    </el-dropdown>
    <el-dropdown split-button type="primary" @click="handleClick">
        更多菜单
        <el-dropdown-menu slot="dropdown">
            <el-dropdown-item >黄金糕</el-dropdown-item>
            <el-dropdown-item divided>狮子头</el-dropdown-item>
            <el-dropdown-item divided>螺蛳粉</el-dropdown-item>
            <el-dropdown-item divided>双皮奶</el-dropdown-item>
            <el-dropdown-item divided>蚵仔煎</el-dropdown-item>
        </el-dropdown-menu>
    </el-dropdown>
</div>

</body>
<script>
    new Vue({
        el: '#app',
        methods:{
            handleClick(){
                alert("你好");
            }
        }
    });
</script>
</body>
</html>